package aden.SifWar;

import aden.Generic.GenMain;
import android.app.Activity;

class SifWarMain extends GenMain
{
    private SifWarActivity mActivity;
    private SifWarPlayerMgr mPlayerMgr;
    
    public SifWarMain(SifWarActivity inActivity)
    {
        mActivity = inActivity;
        
        // get handles to the LunarView from XML, and its LunarThread
        mView = (SifWarView) mActivity.findViewById(R.id.SifWarView);
        mMenu = (SifWarMenu) mActivity.findViewById(R.id.SifWarMenu);
        mWorld = new SifWarWorld(this,15,15);
        mWorld.Autogenerate();
        mPlayerMgr = new SifWarPlayerMgr(this);
        mMenu.Init(this);
        mView.Init(this);
        
        ((SifWarView)mView).RefreshEnv();
	((SifWarView)mView).FlushRefresh();
    }
    
    
    public SifWarView GetSifWarView() {return (SifWarView)mView;}
    public SifWarWorld GetSifWarWorld() {return (SifWarWorld)mWorld;}
    public SifWarMenu GetSifWarMenu() {return (SifWarMenu)mMenu;}
    public SifWarPlayerMgr GetPlayerMgr() {return mPlayerMgr;}
    public Activity GetActivity() {return mActivity;}
}
